package com.key.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author wei
 * @create 2023-02-18 13:27
 */
@ApiModel(value = "资产高级搜索的资产列表")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AssetsFindDTO {
    @ApiModelProperty(name = "currentPage",notes = "当前页码数")
    private Integer currentPage;

    @ApiModelProperty(name = "pageSize",notes = "每页显示记录数")
    private Integer pageSize;

    @ApiModelProperty(name = "assetsId",notes = "资产id")
    private Integer assetsId;

    @ApiModelProperty(name = "assetsState",notes = "资产状态(1:闲置，2:领用，3:借用，4:调拨中，5:损坏，6:报修，7:维修中，8:报废)")
    private Integer assetsState;

    @ApiModelProperty(name = "assetsSignatureStatus",notes = "资产签字状态")
    private String assetsSignatureStatus;

    @ApiModelProperty(name = "assetsCode",notes = "资产编码")
    private String assetsCode;

    @ApiModelProperty(name = "assetsName",notes = "资产名称")
    private String assetsName;

    @ApiModelProperty(name = "assetsRFID",notes = "资产的RFID")
    private String assetsRFID;

    @ApiModelProperty(name = "typeName",notes = "资产类别")
    private String typeName;

    @ApiModelProperty(name = "modelName",notes = "规格型号")
    private String modelName;

    @ApiModelProperty(name = "assetsSerialNumber",notes = "资产序列号(SN号)")
    private String assetsSerialNumber;

    @ApiModelProperty(name = "unit",notes = "计量单位")
    private String unit;

    @ApiModelProperty(name = "assetsMoney",notes = "资产金额")
    private BigDecimal assetsMoney;

    @ApiModelProperty(name = "departmentName",notes = "资产使用部门")
    private String departmentName;

    @ApiModelProperty(name = "employeeName",notes = "资产使用人")
    private String employeeName;

    @ApiModelProperty(name = "employeeId",notes = "资产使用人编号")
    private Integer employeeId;

    @ApiModelProperty(name = "assetsRegionName",notes = "资产区域名称")
    private String assetsRegionName;

    @ApiModelProperty(name = "assetsStorageLocation",notes = "资产存放地")
    private String assetsStorageLocation;

    @ApiModelProperty(name = "assetsManager",notes = "资产管理员")
    private String assetsManager;

    @ApiModelProperty(name = "supplier",notes = "供应商")
    private String supplier;

    @ApiModelProperty(name = "assetsAdmin",notes = "资产所属公司")
    private String assetsAdmin;

    @ApiModelProperty(name = "assetsPurchaseDate",notes = "资产购入日期",value = "yyyy-MM-dd")
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
    private Timestamp assetsPurchaseDate;

    @ApiModelProperty(name = "assetsClearDate",notes = "资产清理日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private String assetsClearDate;





}
